package com.rover022.tool.view
{
	import com.bit101.components.HBox;
	import com.bit101.components.PushButton;
	
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	public class ControlPane extends Sprite
	{
		private var _itemEdit:ItemEditProject;
		public var importInButton:PushButton;
		public var importOutButton:PushButton;
		public var showlinkButton:PushButton;
		public var closelinktButton:PushButton;

		public function ControlPane(src:ItemEditProject)
		{
			_itemEdit = src;
			var h:HBox = new HBox(this);
			importInButton = new PushButton(h,0,0,"导入",fileInClick);
			importOutButton = new PushButton(h,0,0,"导出",fileOutClick);
			showlinkButton = new PushButton(h,0,0,"开启关系图",openLinkClick);
			closelinktButton = new PushButton(h,0,0,"关闭关系图",closeLinkClick);
			 
			
			 new PushButton(h,0,0,"显示合成",showComposeClick);
		}
		
		private function showComposeClick(e:MouseEvent):void
		{
			_itemEdit.showComposePane();
			
		}
		
		private function closeLinkClick(e:MouseEvent):void
		{
			 
			
		}
		
		private function openLinkClick(e:MouseEvent):void
		{
			
			
		}
		
		private function fileOutClick(e:MouseEvent):void
		{
			 
			
		}
		
		private function fileInClick(e:MouseEvent):void
		{
			 
			_itemEdit.importInFile();
		}		
		
		
		
		
		
	}
}